.TH E1432_SET_CLOCK_MASTER 3 E1432
.SH NAME
.nf
e1432_set_clock_master \- Set sample clock source
e1432_get_clock_master \- Get current value of sample clock source
.fi
.IX e1432_set_clock_master(3) 3
.IX e1432_get_clock_master(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_clock_master(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 state)
SHORTSIZ16 e1432_get_clock_master(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 *state)
.cE
.SH DESCRIPTION
A typical measurement doesn't generally need to deal with
\fIe1432_set_clock_master\fR at all.  Normally, the call to
\fIe1432_init_measure\fR automatically takes care of setting the clock
master correctly for all the modules in a measurement, by internally
calling \fIe1432_set_clock_master\fR for each module.  This automatic
setup can be disabled using the \fIe1432_set_auto_group_meas\fR
function.

\fIe1432_set_clock_master\fR controls whether the E1432 module drives
the VXI bus clock line.  The clock line is one of the VXI TTLTRG
lines, as selected by \fIe1432_set_ttltrg_clock\fR.

\fIe1432_get_clock_master\fR returns the current value of the master
clock for a single channel or group of channels \fIID\fR, into a
memory location pointed to by \fI state\fR.

This parameter is a "global" parameter.  It applies to an entire E1432
module rather than to one of its channels.  The \fIID\fR parameter is
used only to identify which module the function applies to, and all
channels in that module will report the same value for this parameter.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fIstate\fR determines the state of the master clock.
\fBE1432_MASTER_CLOCK_ON\fR drives the sample clock from this module
onto the VXI bus.  \fBE1432_MASTER_CLOCK_OFF\fR turns off the sample
clock drive.

.SH "RESET VALUE"
After a reset, \fIstate\fR is set to \fBE1432_MASTER_CLOCK_OFF\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_ttltrg_clock, e1432_set_auto_group_meas, e1432_init_measure,
e1432_set_clock_source
.ad
